//
//  HomeTableViewCell.m
//  LPTClient
//
//  Created by mac on 2018/12/4.
//  Copyright © 2018年 zhaodd. All rights reserved.
//

#import "HomeTableViewCell.h"

@interface HomeTableViewCell ()

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *dateLabel;
@property (weak, nonatomic) IBOutlet UILabel *zhengzhuangLabel;

@end

@implementation HomeTableViewCell


- (void)awakeFromNib {
    [super awakeFromNib];
    
}

-(void)refreshWithDic:(NSDictionary *)dic
{
    self.nameLabel.text = [NSString stringWithFormat:@"%@    %@  %@",dic[@"archive"][@"name"],[dic[@"archive"][@"sex"] integerValue] == 1 ? @"男" : @"女",[NSString stringWithFormat:@"%@",dic[@"archive"][@"age"]]];
    self.zhengzhuangLabel.text = dic[@"created_at"];
    self.dateLabel.text = dic[@"archive"][@"disease"];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
